package com.softserve.entity;

import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "Student")
public class Student {

	private Long id;
	
	private String name;
	
	private Date dob;
	
	private Date doe;
	
	private String facultyName;

	public String getFacultyName() {
		return facultyName;
	}

	public void setFacultyName(String facultyName) {
		this.facultyName = facultyName;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long studentId) {
		this.id = studentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getDob() {
		return dob;
	}

	public void setDob(Date dob) {
		this.dob = dob;
	}

	public Date getDoe() {
		return doe;
	}

	public void setDoe(Date doe) {
		this.doe = doe;
	}
	
	public Student clone(){
		Student result = new Student();
		result.setId(this.id);
		result.setName(this.name);
		result.setDob(this.dob);
		result.setDoe(this.doe);
		result.setFacultyName(this.facultyName);
		return result;
	}
	
}
